//
//  DMDoctorDetailView.m
//  CQKuaiYi
//
//  Created by ling on 17/1/9.
//  Copyright © 2017年 Mr.Cannon. All rights reserved.
//

#import "DMDoctorDetailView.h"

@implementation DMDoctorDetailView

- (void)awakeFromNib
{
    [super awakeFromNib];
}

+ (instancetype)doctorDetailView
{
    return [[NSBundle mainBundle] loadNibNamed:@"DMDoctorDetailView" owner:nil options:nil].firstObject;
}


- (void)setModel:(DMApplyAppointmentModel *)model
{
    _model = model;
    
    //赋值
    //头像
//    _doctor_portrait = model.doctor_portrait;
    //名字
    _doctor_name.text = model.doctor_name;
    //职位
    _doctor_title_name.text = model.doctor_title_name;
    //医院
    _doctor_hospital_name.text = model.doctor_hospital_name;
    //旗帜数量
    _banner.text = model.banner;
    //鲜花数量
    _flower.text = model.flower;
    //预约数
    _operation_count.text = model.operation_count;
    //专业指数
//    _accuracy.text = [NSString stringWithFormat:@"%@%%",model.accuracy];
    _accuracy = [UILabel cz_labelWithText:[NSString stringWithFormat:@"%@%%",model.accuracy] fontSize:15 color:[UIColor whiteColor]];
    
}

@end
